<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    <div abc="这是属性">
</body>
<script>
    // var str = "3456a6ersc56zrdqfew.hcfvw4y3u5e4.hcfvw4y3u5e4@aabsdu23u4e5rt..ahgfs..ah";
    // var str = "3456a6ersc56zrdqfew.hcfvw4y3u5e4.hcfvw4y3u5e4@-aabsdu23u4e5rt..ahgfs..ah";
    // var reg = /^[a-z\d]+(\.[a-z\d]+)*@([\da-z](-[\da-z])?)+(\.{1,2}[a-z]+)+$/;
    // console.log(reg.test(str));



    // var reg = /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w\.-]*)*\/?$/;
    // var str = "http://www.baidu.com/pa_ge/he-llo/world.html";
    // var str = "http://www.baidu.com/pa_ge/he-llo/world/";
    // var str = "http://www.baidu.comdfwsdb/pa_ge/he-llo/world/";
    // var str = "http://www.b!aidu.com/pa_ge/he-llo/world/";
    // console.log(reg.test(str))



    // var reg = /^<([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/;
    // var str = "<span abc='这是属性'>123</span>"
    // console.log(reg.test(str));
    // var str = "<span abc='这是属性'>@#￥%……&*（</span>"
    // console.log(reg.test(str));
    // var str = "<span abc='这是属性'>@#￥%……&*（</div>";
    // console.log(reg.test(str));

</script>
</html>